package com.zrrd.learn.wanzixi;

/**
 * 游戏类
 *
 * @author wrn
 * @version 1.0
 * @date 2023/8/15 17:12
 */

public class GameRole01{

    private String Rolename;
    private int Blood;
    private int Aggressivity;
    private int Defensive;

    public void setRolename(String rolename) {
        Rolename = rolename;
    }

    public void setBlood(int blood) {
        Blood = blood;
    }

    public void setAggressivity(int aggressivity) {
        Aggressivity = aggressivity;
    }

    public void setDefensive(int defensive) {
        Defensive = defensive;
    }

    public String getRolename() {
        return Rolename;
    }

    public int getBlood() {
        return Blood;
    }

    public int getAggressivity() {
        return Aggressivity;
    }

    public int getDefensive() {
        return Defensive;
    }

    public GameRole01(String Rolename, int Blood, int Aggressivity, int Defensive){
        this.Rolename=Rolename;
        this.Blood=Blood;
        this.Aggressivity=Aggressivity;
        this.Defensive=Defensive;
    }

    //血量
    public void blood01(String Rolename,int Blood){

        System.out.println("乔峰打了鸠摩智一拳");
        System.out.println(Rolename+"剩余血量为"+Blood);

    }



    //特性
    public void cast01(String Rolename,int Blood,int Aggressivity){

        System.out.println("没有我鸠摩智，算什么英雄大会。");
        System.out.println(Rolename+"剩余血量为"+Blood);

    }

}
